package com.xms.datacore;

/**
 * <p>
 * DataBaseType
 * </p>
 *
 * @author migo
 * @since 2021/12/4
 */
public enum DataBaseType {
    SQLSERVER(0, "sqlserver"),
    MYSQL(1, "mysql"),
    ORACLE(2, "oracle"),
    PGSQL(3, "pgsql");

    DataBaseType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean equals(DataBaseType compared) {
        return this.value() == compared.value();
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
